package com.icore.api;

import java.util.Map;

import com.icore.AppException;
import com.icore.bean.GoucheBaseInfo;
import com.icore.bean.GoucheList;
import com.icore.bean.RetRes;
import com.icore.bean.User;

/**
 * 核心接口类
 * 
 */
public interface ICoreGet2Api {

	/**
	 * 登录
	 * 
	 * @param username
	 * @param pwd
	 * @return
	 * @throws AppException
	 */
	public User login(String username, String pwd) throws AppException;

	/**
	 * 购车列表
	 * 
	 * @param userID
	 * @return
	 * @throws AppException
	 */
	public GoucheList getGoucheList(String userID) throws AppException;

	/**
	 * 更改状态
	 * 
	 * @param carNo
	 * @return
	 * @throws AppException
	 */
	public RetRes updateState(String carNo) throws AppException;

	/**
	 * 查询购车基本信息
	 * 
	 * @param params
	 * @return
	 * @throws AppException
	 */
	public GoucheBaseInfo queryBI(Map<String, Object> params) throws AppException;

	/**
	 * 插入购车基本信息
	 * 
	 * @param params
	 * @return
	 * @throws AppException
	 */
	public RetRes insertBI(Map<String, Object> params) throws AppException;
}
